#include <stdio.h>
#include <unistd.h>

int main(void)
{
	int flag = 1;
	int i = 0;
	while(1)
	{
		printf("process = %d", i);
		putchar('\n');
		if(i == 10) flag = 0;
		if(i == 0) flag = 1;
		if(flag) i++;
		else i--;
		fflush(stdout);
		usleep(300000);
	}
	return 0;
}
